Skip to content

fix(work): stop Grok hooks treating home roster as a project - #537

Merged
solomonneas merged 3 commits into
mainfrom
fix/grok-hook-wired-target
Jul 26, 2026
Merged

fix(work): stop Grok hooks treating home roster as a project#537
solomonneas merged 3 commits into
mainfrom
fix/grok-hook-wired-target

Conversation

@solomonneas

@solomonneas solomonneas commented Jul 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Shared resolve_wired_target requires .brigade/config.json (Claude hooks + new CLI); ~/.brigade roster-only dirs are never a work target
  • Add brigade work resolve-target --cwd PATH [--harness NAME] so shell hooks cannot reimplement discovery wrong
  • Ship Grok hook templates that use the resolver, timeout session briefs, and stop denying edits while a brief runs

Fixes #536

Test plan

  • pytest tests/test_wiring_resolve_target.py tests/test_claude_hooks_runtime.py -q (via brigade work verify run)
  • brigade work resolve-target --cwd $HOME / unwired dirs → exit 1
  • brigade work resolve-target --cwd <wired-repo> --harness grok → that repo
  • Confirm a Grok/T3 session under $HOME no longer backgrounds work brief --target $HOME
  • After install, copy/update ~/.grok/hooks/brigade-work.sh from the shipped template (or reinstall when a managed Grok hooks path lands)

Made with Cursor

Require .brigade/config.json via shared resolve_wired_target and
brigade work resolve-target so ~/.brigade never becomes a brief target (#536).

Co-authored-by: Cursor <cursoragent@cursor.com>
@coderabbitai

coderabbitai Bot commented Jul 26, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • coderabbit-review

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository: escoffier-labs/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 480992cf-3313-4c27-a16c-db0ddf20d230

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/grok-hook-wired-target

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@solomonneas solomonneas self-assigned this Jul 26, 2026
@solomonneas
solomonneas merged commit 433d285 into main Jul 26, 2026
28 checks passed
@solomonneas
solomonneas deleted the fix/grok-hook-wired-target branch July 26, 2026 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Grok work-loop hook treats ~/.brigade (home roster) as a project and burns a core every session

1 participant